home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
nrpas13.zip
/
ERFCC.DEM
< prev
next >
Wrap
Text File
|
1991-04-29
|
575b
|
25 lines
PROGRAM d6r12(input,output,dfile);
(* driver for routine erfcc *)
VAR
i,nval : integer;
x,val : real;
txt : string[14];
dfile : text;
(*$I MODFILE.PAS *)
(*$I ERFCC.PAS *)
BEGIN
glopen(dfile,'fncval.dat');
REPEAT readln(dfile,txt) UNTIL (txt = 'Error Function');
readln(dfile,nval);
writeln ('complementary error function');
writeln ('x':5,'actual':12,'erfcc(x)':13);
FOR i := 1 to nval DO BEGIN
readln(dfile,x,val);
val := 1.0-val;
writeln (x:6:2,val:12:7,erfcc(x):12:7)
END;
close(dfile)
END.